package org.anderground.internal.graphics.impl;

import org.anderground.internal.graphics.abstaractions.AbstractRadialGradient;

import android.graphics.RadialGradient;
import android.graphics.Shader;
import android.graphics.Shader.TileMode;

public class AndroidRadialGradient extends AndroidShader implements
		AbstractRadialGradient {

	private float x, y, radius;
	private int color0, color1;

	public AndroidRadialGradient(float x, float y, float radius, int color0,
			int color1) {
		super();
		this.x = x;
		this.y = y;
		this.radius = radius;
		this.color0 = color0;
		this.color1 = color1;
	}

	@Override
	public Shader getShader() {
		return new RadialGradient(x, y, radius, color0, color1, TileMode.CLAMP);
	}

}
